package com.common.repository.judicialcheck;

import com.common.entity.judicialcheck.JudicialCheckEntity;
import com.common.entity.judicialcheck.JudicialTargetTypeSumCheckEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author johnny
 * @create 2021-05-13 10:24 下午
 **/
public interface JudicialTargetTypeSumCheckRepository extends JpaRepository<JudicialTargetTypeSumCheckEntity, Long> {


    Long countByPersonalIdAndYearAndMonth(Long personalId, Integer year, Integer month);

    void deleteByPersonalIdAndYearAndMonth(Long personalId, Integer year, Integer month);

    JudicialTargetTypeSumCheckEntity findByPersonalIdAndYearAndMonth(Long personalId, Integer year, Integer month);


}